﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Shell;
using System.Reflection;
using Microsoft.VisualStudio.FSharp.ProjectSystem;
using Microsoft.VisualStudio.Shell.Interop;

namespace FSharpInterrogator
{
    class Program
    {
        static void Main(string[] args)
        {
            var assm = Assembly.LoadFrom(@"C:\Windows\Microsoft.NET\assembly\GAC_MSIL\FSharp.ProjectSystem.FSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\FSharp.ProjectSystem.FSharp.dll");
            var type = assm.GetType("Microsoft.VisualStudio.FSharp.ProjectSystem.FSharpProjectPackage");
            var package = (IVsPackage)Activator.CreateInstance(type);

            package.SetSite(new VsServiceProvider());

            Console.ReadKey();
        }
    }
}
